﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addnews02.aspx.cs" Inherits="WebSite.admin.title.addnews02" %>
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>万礼通后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
      <link rel="stylesheet" href="../kindEditor/plugins/code/prettify.css" />
   <script charset="utf-8" src="../kindEditor/kindeditor.js"></script>
	<script charset="utf-8" src="../kindEditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../kindEditor/plugins/code/prettify.js"></script>
    <script>
        KindEditor.ready(function (K) {
            var editor1 = K.create('#txtaContent', {
                cssPath: '../kindEditor/plugins/code/prettify.css',
                uploadJson: '../kindEditor/upload_json.ashx',
                fileManagerJson: '../kindEditor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=form1]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=form1]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
        </script>
    <script language='javascript'>

	function clicka()
	{
	<% if (Request.QueryString["nid"] != null){}else{%>
	alert("- 文章标题不能为空。\n- 文章分类不能不选");
	return false;
	<%} %>
	}
	</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <%if (Request.QueryString["nid"] != null){ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#E2E7EB"><a href="addnews.aspx?nid=<%=Request.QueryString["nid"]%>">通用信息</a></td>
      <td bgcolor="#C9D2DA"><a href="addnews02.aspx?nid=<%=Request.QueryString["nid"]%>" class="menu02">文章内容</a></td>
      <td bgcolor="#E2E7EB"><a href="addnews03.aspx?nid=<%=Request.QueryString["nid"]%>">关联商品</a></td>
    </tr>
  </table>
  <%}else{ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#E2E7EB"><a href="addnews.aspx">通用信息</a></td>
      <td bgcolor="#C9D2DA"><a href="addnews02.aspx" class="menu02">文章内容</a></td>
      <td bgcolor="#E2E7EB"><a href="addnews03.aspx">关联商品</a></td>
    </tr>
  </table>
  <%} %>
  <br />
  <table width="90%" border="0" cellpadding="3" cellspacing="0">

    <tr>
      <td height="50">
    
        <textarea id="txtaContent" cols="100" rows="8"  style="width:100%;height:350px;visibility:hidden;" runat="server"></textarea>
      </td>
      </tr>
    <tr>
      <td height="50" align="center">
      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/buttom-02.gif" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
      </tr>
  </table></td>
</tr>
</table>
    </div>
    </form>
</body>
</html>
